package com.elitedatai.mchtest.map.repository;

import com.elitedatai.mchtest.map.model.entity.FlightAreaPropertyEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;


public interface FlightAreaPropertyRepository extends JpaRepository<FlightAreaPropertyEntity, Long> {
    FlightAreaPropertyEntity findByElementId(String elementId);

    @Query("select e from FlightAreaPropertyEntity e where e.elementId in :elementIds")
    List<FlightAreaPropertyEntity> findByElementIds(List<String> elementIds);

    Long deleteByElementId(String elementId);
}
